package com.yc.web;

import com.yc.entity.User;
import com.yc.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "damai-user")
public interface UserAction {
    @RequestMapping("user/getLoginedUser")
    Result getLoginedUser();

    @RequestMapping("user/login")
    public Result login(@RequestBody User user);
}
